
package acid.ant;

import java.io.File;

/**
 * Encapsulates a source file.
 * @author crowley <cliffrowley@gmail.com> 
 */
class SourceFile
{
	
	/** The source file */
	public File srcfile;
	/** The destination file */
	public File destfile;
	
	/** The class name */
	public String classname; 
	
	/** The source file package */
	public String pkg;
	
	/**
	 * Creates a new instance.
	 * @param srcfile The source file.
	 * @param pkg  The source file package.
	 */
	public SourceFile(File srcfile, File destfile, String pkg, String classname)
	{
		this.srcfile   = srcfile;
		this.destfile  = destfile;
		this.pkg       = pkg;
		this.classname = classname;
	}
	
	public String toString()
	{
		return new StringBuffer()
			.append("[SourceFile srcfile=").append(srcfile).append(", ")
			.append("destfile=").append(destfile).append(", ")
			.append("pkg=").append(pkg).append(", ")
			.append("classname=").append(classname)
			.append("]").toString();
	}
	
}